﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace gnet1.Models
{
  public class BmiViewModel
  {
    [Required]
    [Range(36, 100,
        ErrorMessage = "Height value in inches for {0} must be between {1} and {2}.")]
    public double HeightInInches { get; set; }

    [Required]
    [Range(50, 1000,
        ErrorMessage = "Weight value in pounds for {0} must be between {1} and {2}.")]
    public double WeightInPounds { get; set; }
    public double BMI { get; set; }
    public string Status { get; set; }
  }
}